package top.riske.animalhazardassessment.common.entity;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "文件信息")
@TableName("file")
public class AFile {

    @Schema(description = "文件ID")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @Schema(description = "文件名")
    @TableField(value = "file_name")
    private String fileName;

    @Schema(description = "文件md5值")
    @TableField(value = "file_hash")
    private String fileHash;

    @Schema(description = "文件大小")
    @TableField(value = "file_size")
    private String fileSize;

    @Schema(description = "文件路径")
    @TableField(value = "path")
    private String path;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private String createTime;

    @TableLogic
    private boolean deleted;

    public AFile() {
    }
}
